const koa = require("koa");
const router = require("./router");

const app = new koa();

app.use(router.routes()).use(router.allowedMethods());

app.use(async (ctx, next) => {
  ctx.body = "Hello World";
});

app.listen(8888, () => {
  console.log("Server is running on http://localhost: 8888");
});
